package com.xuef.ibatis.binding;

import com.xuef.ibatis.session.Configuration;
import com.xuef.ibatis.session.SqlSession;

import java.lang.reflect.Method;
import java.util.SortedMap;

/**
 * Created by xuefengDong: moveb
 * On 2019/4/26- 15:30
 * 表示一个 sql 标签
 * <select id="getUserById" resultType ="com.xuef.bean.User">
 *      select * from user where id = ?
 * </select>
 */
public class MapperMethod {
    //sql 标签的 id，对应接口的方法名
    private String name;
    private String sqlType; //insert,update,delete,select
    private String sql;
    private Class<?> resultType;
    private SortedMap<Integer, String> params;

    public MapperMethod(Class<?> mapperInterface, Method method, Configuration config) {
        //mapperInterface.getName() + "." + method.getName();
    }

    public Object execute(SqlSession sqlSession, Object[] args) {

        return null;
    }
}
